using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using EcsSiteDSTableAdapters;

namespace SiteECSWeb
{
    [DataObject]
    public class EcsInternalOfficesBLL
    {
        private EcsInternalOfficesTableAdapter _EcsInternalOfficesAdapter = null;

        protected EcsInternalOfficesTableAdapter EcsInternalOfficesAdapter
        {
            get
            {
                if (_EcsInternalOfficesAdapter == null)
                {
                    _EcsInternalOfficesAdapter = new EcsInternalOfficesTableAdapter();
                }
                return _EcsInternalOfficesAdapter;
            }

        }

        #region SelectEcsOffice
        //Get all Ecs Offices Data//
        [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
        public EcsSiteDS.EcsInternalOfficesDataTable GetAllEcsInternalOffices()
        {
            return EcsInternalOfficesAdapter.GetEcsInternalOfficesRowRankData();
        }
                
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.EcsInternalOfficesDataTable
            GetEcsInternalOfficesByRowRank(int RowRank)
        {
            return EcsInternalOfficesAdapter.GetEcsInternalOfficesDataByRowRank(RowRank);
        }
       
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.EcsInternalOfficesDataTable 
            GetEcsInternalOfficesByEcsInternalOfficeID(int InternalID)
        {
            return EcsInternalOfficesAdapter.
                GetEcsInternalOfficesDataByEcsInternalOfficeID(InternalID);
        }

        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.EcsInternalOfficesDataTable
            GetEcsInternalOfficesByInterOffNmEn(string Ecs_InternalOffice_Nmen)
        {
            return EcsInternalOfficesAdapter.
                GetEcsInternalOfficesDataByInterOffNmEn(Ecs_InternalOffice_Nmen);
        }

        #endregion


        #region InsertEcsOffice
        // insert All Column into EcsOffice Table//
        #endregion

        #region updateEcsOffice
      
        #endregion


        #region DeleteEcsOffice
       

        #endregion

    }
}

